package A20180409;

public class test {
	public static void main(String[] args) {
		Figure f1 = new Circle(5);
		Figure f2 = new Rectangle(5, 3);
		
		equalsArea(f1, f2);
		
		display(f1);
		display(f2);
	}
	
	public static boolean equalsArea(Figure f1, Figure f2) {
		return f1.getArea() == f2.getArea();
	}
	
	public static void display(Figure f) {
		System.out.println("The area is: " + f.getArea());
		System.out.println("The Perimeter is:" + f.getPerimeter());
	}
}
